<?php
class MsDataFetch {
  public static function ccrs() {
    $result = new stdClass();
    $result->ceremony_locations = json_decode(file_get_contents(SERVER_LINK . '_es/find_ms_4_es.php?table=ns_iceremony'));
    $result->cultural_backgrounds = json_decode(file_get_contents(SERVER_LINK . '_es/find_ms_4_es.php?table=ns_iculture'));
    $result->reception_locations = json_decode(file_get_contents(SERVER_LINK . '_es/find_ms_4_es.php?table=ns_ireception'));
    $result->sources = json_decode(file_get_contents(SERVER_LINK . '_es/find_ms_4_es.php?table=ns_isource'));
    $_SESSION[MS_DATA] = $result;
    //setcookie(MS_DATA, json_encode($result), 0, PATH, ((DOMAIN == 'localhost') ? NULL : DOMAIN));
  }
}
?>